All Questions
9 questions
5votes
3answers
3kviews
Mars Rover technical Challenge in OOP
I am trying to practice OOP and TDD concepts, I have written this code for Mars rover challenge from marsrovertechchallenge . Can you please review my code from my GitHub repository? Or you can ...
4votes
3answers
101views
Print the first, last, and in-between integers of a range
Given our spec from Code Golf: Given two integers, output the two integers, and then the range between them. The order of the range must be the same as the input. Examples: ...
5votes
2answers
6kviews
Mars Rover Simulator
Problem Statement Consider a rover and a plateau of size nxn. The rover takes three type of instructions L,R and M. 'L' and 'R' rotate the rover in the left and right direction. 'M' moves the ...
2votes
1answer
881views
Raindrops in Java
Problem Statement: Write a program that converts a number to a string, the contents of which depends on the number's prime factors. If the number contains 3 as a prime factor, output '...
4votes
3answers
2kviews
Binary string to decimal conversion
Problem Statement: Write a program that will convert a binary number, represented as a string (e.g. '101010'), to its decimal equivalent using first principles Implement binary to decimal ...
5votes
1answer
467views
Let's revisit Roman numbers
Problem Statement: Write a function to convert from normal numbers to Roman Numerals: e.g. 1 => I 10 => X 7 => VII Code: ...
4votes
2answers
1kviews
Let's play Scrabble
Problem: Write a program that, given a word, computes the scrabble score for that word. Code: ...
4votes
3answers
2kviews
Count words in a string
Continuing my TDD from exercism. Write a program that given a phrase can count the occurrences of each word in that phrase. For example for the input ...
4votes
1answer
205views
Simple Ruby program to model a prepaid transit card system
I have written a simple Ruby program to model a transit card system which aims to address the following user stories. I wanted to see whether I could get any feedback on it. My main interest is ...